package com.yxw.yxnet_cd_center.customer_service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yxw.yxnet_cd_center.customer_service.dto.DictQueryDTO;
import com.yxw.yxnet_cd_center.customer_service.entity.SysDictDataEntity;
import com.yxw.yxnet_cd_center.customer_service.vo.DictionaryVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 字典表管理
 * @author liuxin
 * @date 2023.09.17
 */
@Repository
public interface DictMapper extends BaseMapper<SysDictDataEntity> {

    /**
     * 根据类型获取字典值列表
     * @param dto
     * @return
     */
    List<DictionaryVo> getDictDataByType(DictQueryDTO dto);

    /**
     * 根据ID查询字典值
     * @param id
     * @return
     */
    DictionaryVo getDictDataById(Long id);

    /**
     * 字段表状态修改
     * @param id
     */
    void updateDictStatus(Long id);
}
